package com.shj.model;

import lombok.Getter;
import lombok.Setter;

/**
 * @Description TODO 异常实体
 * @Author songhuajian
 * @Date 2020/3/26 15:51
 **/
@Getter
@Setter
public class ErrorInfo<T> {
    private Integer code;
    private String msg;
    private String url;
    private Object data;

    public ErrorInfo(){
    }

    public ErrorInfo(Integer code, String msg, String url, java.lang.Object data) {
        this.code = code;
        this.msg = msg;
        this.url = url;
        this.data = data;
    }

    @Override
    public String toString() {
        return "ErrorInfo{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", url='" + url + '\'' +
                ", data=" + data +
                '}';
    }
}
